.PHONY:all
all:test1 test

test1:test1.c
	gcc -o $@ $^
test:test.cc
	g++ -o $@ $^

.PHONY:clean
clean: 
	rm -f test1 test